(w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
authorAndrew Innes <andrewi@gnu.org>
Wed, 14 Feb 2001 13:00:01 +0000 (13:00 +0000)
committerAndrew Innes <andrewi@gnu.org>
Wed, 14 Feb 2001 13:00:01 +0000 (13:00 +0000)
Emacs frame above the screen size.

src/w32fns.c

index efd9efa108c5e21c0d47b435da57bee2caaf2e04..c36823cc229a6f041e3d00b94455f8ea952778e8 100644 (file)
@@ -4845,6 +4845,10 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
       /* Hack to correct bug that allows Emacs frames to be resized
         below the Minimum Tracking Size.  */
       ((LPMINMAXINFO) lParam)->ptMinTrackSize.y++;
+      /* Hack to allow resizing the Emacs frame above the screen size.
+        Note that Windows 9x limits coordinates to 16-bits.  */
+      ((LPMINMAXINFO) lParam)->ptMaxTrackSize.x = 32767;
+      ((LPMINMAXINFO) lParam)->ptMaxTrackSize.y = 32767;
       return 0;
 
     case WM_EMACS_CREATESCROLLBAR: